﻿using FieldTools.Client.Business.IBusiness;
using FieldTools.Util;

namespace FieldTools.Client.Business.Business
{
    /// <summary>
    /// 基础公共类
    /// </summary>
    public class BaseBus
    {
        /// <summary>
        /// 获取实体配置
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="className">实体类名</param>
        /// <param name="defaultObj">默认值</param>
        /// <returns></returns>
        public static T GetEntityConfig<T>(string className, T defaultObj)
        {
            return CacheHelper.GetOrSetCache(className, defaultObj);
        }
    }
}
